package ar.edu.itba.pod.legajo48062;

import ar.edu.itba.node.NodeInformation;

// ESTA CLASE SE USA PARA EL BALANCEO DE AGENTES, ALMACENA LA INFORMACION DE UN NODO Y SU CANTIDAD DE AGENTES
public class NodeAgentsAmount implements Comparable<NodeAgentsAmount> {
	private NodeInformation node;
	private int amount;

	public NodeAgentsAmount(NodeInformation node, int amount) {
		this.node = node;
		this.amount = amount;
	}

	public int getAmount() {
		return amount;
	}

	public NodeInformation getNode() {
		return node;
	}

	public void setAgentsQty(int amount) {
		this.amount = amount;
	}

	@Override
	public int compareTo(NodeAgentsAmount o) {
		return amount - o.getAmount();
	}
}